// urlDecoder.js

export default function decodeURLParams(url) {
    const urlParams = new URLSearchParams(url.split("?")[1]);
    let decodedParams = {};
    for (let [key, value] of urlParams.entries()) {
        decodedParams[key] = decodeURIComponent(value);
    }
    return decodedParams;
}